﻿// Copyright (c) Inossem. All rights reserved.
// Licensed under the LGPL-3.0 license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace DWF.Studio.Views
{
    public class CustomTabItem: TabItem
    {
        public bool IsContentChanged
        {
            get { return (bool)GetValue(IsContentChangedProperty); }
            set { SetValue(IsContentChangedProperty, value); }
        }

        public bool IsReadOnly
        {
            get { return (bool)GetValue(IsReadOnlyProperty); }
            set { SetValue(IsReadOnlyProperty, value); }
        }
        public string FilePath
        {
            get { return (string)GetValue(FilePathProperty); }
            set { SetValue(FilePathProperty, value); }
        }
        /// <summary>
        /// 是否存在
        /// </summary>
        public static readonly DependencyProperty IsContentChangedProperty = DependencyProperty.Register("IsContentChanged", typeof(bool), typeof(CustomTabItem));
        public static readonly DependencyProperty IsReadOnlyProperty = DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(CustomTabItem));
        public static readonly DependencyProperty FilePathProperty = DependencyProperty.Register("FilePath", typeof(string), typeof(CustomTabItem));
    }
}
